﻿using Max.PH4_2102A.Shopping.Domain;

namespace Max.PH4_2102A.Shopping.IRespository
{
    /*
     * 这是接口，所以
     * 1、只定义方法，没有实现
     * 
     * **/
    public interface IUserRespository
    {
        //public int Insert(UserModel model) { }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Insert(UserModel model);

        /// <summary>
        /// 查询
        /// </summary>
        /// <returns></returns>
        IQueryable<UserModel> GetAll();

        int Update(UserModel model);
    }
}